package com.starlink.model.dtomapper;

import com.starlink.model.domain.ShoppingCartDetailDO;
import com.starlink.model.request.ShoppingCartDetailRequest;
import com.starlink.model.vo.ShoppingCartDetailVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface ShoppingCartDetailDtoMapper {

    ShoppingCartDetailDtoMapper INSTANCE = Mappers.getMapper(ShoppingCartDetailDtoMapper.class);

    /**
    * DO to VO
    * @param shoppingCartDetailDO
    * @return
    */
    ShoppingCartDetailVO do2VO(ShoppingCartDetailDO shoppingCartDetailDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    ShoppingCartDetailDO request2DO(ShoppingCartDetailRequest request);
}
